
<template>
  <div class="main-container">
    <div class="filtrate-bar">
      <div class="title-box">
        <div class="icon-box">
          <span class="wk wk-my-task icon" />
        </div>
        <span class="text">汇总报表 {{ fromDate + '~' + thruDate }}</span>
      </div>
    </div>

    <div class="table-content">
      <div class="handle-bar">
        <!-- <a-button class="export-btn">导出</a-button> -->
      </div>
      <a-table :scroll="{ y: 300 }" :columns="fieldList" :data-source="tableList" bordered :pagination="false">
        <span slot="estimatedDivAvailableRateFormat" slot-scope="text, record">
          {{ record.estimatedDivAvailableRate + '%' }}
        </span>
        <span slot="estimatedFreezeRate" slot-scope="text, record">
          {{ record.estimatedFreezeRate + '%' }}
        </span>
        <span slot="estimatedRefrigerateRate" slot-scope="text, record">
          {{ record.estimatedRefrigerateRate + '%' }}
        </span>
        <span slot="estimatedConstantRate" slot-scope="text, record">
          {{ record.estimatedConstantRate + '%' }}
        </span>
        <span slot="estimatedNormalRate" slot-scope="text, record">
          {{ record.estimatedNormalRate + '%' }}
        </span>
      </a-table>
    </div>

    <div class="analysis">
      <a-row :span="24">
        <a-col :span="24"
          ><div class="analysis-content">
            <div id="analysisAll1" />
            <div class="tips">
              <div style="padding-left: 5px; border-left: 30px solid #fd4d4d">未达标部分</div>
              <!-- <div style="padding-left: 5px; border-left: 30px solid yellow">
                在售/空余 距离达标值 比例 （小于 100%）
              </div>
              <div style="padding-left: 5px; border-left: 30px solid #52c41a">在售/空余 比例</div> -->
            </div>
          </div>
        </a-col>
      </a-row>

      <a-row :span="24">
        <a-col :span="24"
          ><div class="analysis-content">
            <div id="analysisAll3" /></div
        ></a-col>
      </a-row>
    </div>

    <div class="analysis">
      <a-row :span="24">
        <a-col :span="12"
          ><div class="analysis-content">
            <div id="analysisAll5" /></div
        ></a-col>
        <a-col :span="12"
          ><div class="analysis-content">
            <div id="analysisAll6" /></div
        ></a-col>
      </a-row>
    </div>
  </div>
</template>

<script>
import { httpAction, getAction } from '@/api/manage'
export default {
  /** 客户总量分析 */
  name: 'SummaryReportAll',
  data() {
    return {
      loading: false,
      fromDate: '',
      thruDate: '',
      chartAnalysis1: null,
      //chartAnalysis2: null,
      chartAnalysis3: null,
      chartAnalysis5: null,
      chartAnalysis6: null,
      analysis1Option: null,
      //analysis2Option: null,
      analysis3Option: null,
      analysis5Option: null,
      analysis6Option: null,

      url: {
        getSalesDataTotalAnalysis: '/online/api/getSalesDataTotalAnalysis',
        businessListByProductCategory: '/online/api/businessListByProductCategory',
        exportXlsUrl: '/online/api/export/exportXlsGraphReport',
      },
      postParams: {}, // 筛选参数
      dataIndex: null,
      list: [],
      axisList: [],
      fieldList: [
        {
          title: '全国仓库销售情况',
          children: [
            {
              title: '部门',
              align: 'center',
              dataIndex: 'warehouseName',
              key: 'warehouseName',
              width: 80,
            },
            {
              title: '销售数据',
              align: 'center',
              children: [
                {
                  title: '冷冻',
                  align: 'center',
                  children: [
                    {
                      title: '当前空余库位',
                      align: 'center',
                      dataIndex: 'availableFreeze',
                      key: 'availableFreeze',
                      width: 90,
                    },
                    {
                      title: '销售库位',
                      align: 'center',
                      dataIndex: 'estimatedFreeze',
                      key: 'estimatedFreeze',
                      width: 90,
                    },
                    {
                      title: '销售库位与空余库位占比',
                      align: 'center',
                      dataIndex: 'estimatedFreezeRate',
                      key: 'estimatedFreezeRate',
                      width: 70,
                      scopedSlots: { customRender: 'estimatedFreezeRate' },
                    },
                  ],
                },
                {
                  title: '冷藏',
                  align: 'center',
                  children: [
                    {
                      title: '当前空余库位',
                      align: 'center',
                      dataIndex: 'availableRefrigerate',
                      key: 'availableRefrigerate',
                      width: 90,
                    },
                    {
                      title: '销售库位',
                      align: 'center',
                      dataIndex: 'estimatedRefrigerate',
                      key: 'estimatedRefrigerate',
                      width: 90,
                    },
                    {
                      title: '销售库位与空余库位占比',
                      align: 'center',
                      dataIndex: 'estimatedRefrigerateRate',
                      key: 'estimatedRefrigerateRate',
                      width: 70,
                      scopedSlots: { customRender: 'estimatedRefrigerateRate' },
                    },
                  ],
                },
                {
                  title: '恒温',
                  align: 'center',
                  children: [
                    {
                      title: '当前空余库位',
                      align: 'center',
                      dataIndex: 'availableConstant',
                      key: 'availableConstant',
                      width: 90,
                    },
                    {
                      title: '销售库位',
                      align: 'center',
                      dataIndex: 'estimatedConstant',
                      key: 'estimatedConstant',
                      width: 90,
                    },
                    {
                      title: '销售库位与空余库位占比',
                      align: 'center',
                      dataIndex: 'estimatedConstantRate',
                      key: 'estimatedConstantRate',
                      width: 70,
                      scopedSlots: { customRender: 'estimatedConstantRate' },
                    },
                  ],
                },
                {
                  title: '常温',
                  align: 'center',
                  children: [
                    {
                      title: '当前空余库位',
                      align: 'center',
                      dataIndex: 'availableNormal',
                      key: 'availableNormal',
                      width: 90,
                    },
                    {
                      title: '销售库位',
                      align: 'center',
                      dataIndex: 'estimatedNormal',
                      key: 'estimatedNormal',
                      width: 90,
                    },
                    {
                      title: '销售库位与空余库位占比',
                      align: 'center',
                      dataIndex: 'estimatedNormalRate',
                      key: 'estimatedNormalRate',
                      width: 70,
                      scopedSlots: { customRender: 'estimatedNormalRate' },
                    },
                  ],
                },
                //{
                //   title: '',
                //   children: [
                //     {
                //       title: '销售库位与空余库位占比',
                //       align: 'center',
                //       dataIndex: 'estimatedDivAvailableRate',
                //       key: 'estimatedDivAvailableRate',
                //       width: 100,
                //       scopedSlots: { customRender: 'estimatedDivAvailableRateFormat' },
                //     },
                //   ],
                // },
              ],
            },
            // {
            //    title: '本月新签合同数量',
            //    align: 'center',
            //    dataIndex: 'item10',
            //    key: 'item10',
            //    width: 100,
            //  },
          ],
        },
      ],
      tableList: [],
    }
  },
  computed: {
    // 列表请求参数
    listPostParams() {
      const params = { ...this.postParams }

      if (this.dataIndex !== undefined && this.dataIndex !== null) {
        const dataItem = this.axisList[this.dataIndex]
        delete params.type
        params.startTime = dataItem.type
        params.endTime = dataItem.type
      }

      return params
    },
  },
  mounted() {
    this.initAxis()
  },
  methods: {
    /**
     * 搜索点击
     */
    searchClick(params) {
      this.postParams = params
      this.getDataList()
      this.getRecordList()
    },
    /**
     * 图表数据   待完善
     */
    getDataList() {
      this.chartAnalysis1.setOption(this.analysis1Option, true)
      //this.chartAnalysis2.setOption(this.analysis2Option, true)
      this.chartAnalysis3.setOption(this.analysis3Option, true)
      this.chartAnalysis5.setOption(this.analysis5Option, true)
      this.chartAnalysis6.setOption(this.analysis6Option, true)
    },
    /**
     * 获取相关列表
     */
    getRecordList(dataIndex) {
      this.dataIndex = dataIndex
      this.list = []
      this.loading = true
      biCustomerTotalListAPI(this.listPostParams)
        .then((res) => {
          this.loading = false
          const data = res.result || {}
          this.list = data.list || []
          this.getSummariesData(data.total)
        })
        .catch(() => {
          this.loading = false
        })
    },

    /** 图表 */
    initAxis() {
      this.chartAnalysis1 = this.echarts.init(document.getElementById('analysisAll1'))
      this.chartAnalysis3 = this.echarts.init(document.getElementById('analysisAll3'))
      this.chartAnalysis5 = this.echarts.init(document.getElementById('analysisAll5'))
      this.chartAnalysis6 = this.echarts.init(document.getElementById('analysisAll6'))

      this.analysis1Option = {
        title: {
          text: '销售预警报告',
        },
        dataZoom: [
          {
            // 控制图表左右滑动
            width: '15',
            type: 'slider',
            show: false, //flase直接隐藏图形
            xAxisIndex: [0],
            left: 33, //滚动条靠左侧的百分比
            bottom: 40,
            height: 20, //组件高度
            start: 0, //滚动条的起始位置
            showDataShadow: false, //是否显示数据阴影
            showDetail: false, //是否显示想洗数值信息
            end: 50, //滚动条的截止位置（按比例分割你的柱状图x轴长度）
          },
          {
            type: 'inside',
            show: true,
            xAxisIndex: [0],
            start: 0, //滚动条的起始位置
            end: 0.25, //滚动条的截止位置（按比例分割你的柱状图x轴长度）
          },
        ],
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow', // 默认为直线，可选为：'line' | 'shadow'
          },
          formatter: function (params, ticket, callback) {
            console.log(params)
            var htmlStr = ''
            for (var i = 0; i < params.length; i++) {
              var param = params[i]
              var xName = param.name
              var seriesName = param.seriesName
              var value = param.value ? param.value + '%' : '-'
              var color = param.color
              if (i === 0) {
                htmlStr += xName + '<br/>'
              }
              htmlStr += '<div>'
              htmlStr +=
                '<span style="margin-right:5px;display:inline-block;width:10px;height:10px;border-radius:5px;background-color:' +
                color +
                ';"></span>'
              htmlStr += seriesName + '：' + value
              htmlStr += '<div/>'
            }
            return htmlStr
          },
        },
        legend: {
          data: [
            '冷冻在售',
            '冷冻未达标',
            '冷藏在售',
            '冷藏未达标',
            '恒温在售',
            '恒温未达标',
            '常温在售',
            '常温未达标',
          ],
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true,
        },
        xAxis: [
          {
            axisLabel: {
              interval: 0,
              rotate: 30,
            },
            type: 'category',
            data: [],
          },
        ],
        yAxis: [
          {
            type: 'value',
            axisLabel: {
              formatter: '{value}%',
            },
          },
        ],
        series: [
          {
            name: '冷冻在售',
            type: 'bar',
            color: '#0000FF',
            stack: '冷冻',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '冷冻未达标',
            type: 'bar',
            color: '#7f7f7f',
            stack: '冷冻',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            data: [],
            emphasis: {
              focus: 'series',
            },
            itemStyle: {
              normal: {
                color: function (params) {
                  return '#fd4d4d'
                },
              },
            },
          },
          {
            name: '冷藏在售',
            type: 'bar',
            color: '#FFFF00',
            stack: '冷藏',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '冷藏未达标',
            type: 'bar',
            color: '#7f7f7f',
            stack: '冷藏',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            data: [],
            emphasis: {
              focus: 'series',
            },
            itemStyle: {
              normal: {
                color: function (params) {
                  return '#fd4d4d'
                },
              },
            },
          },
          {
            name: '恒温在售',
            type: 'bar',
            color: '#00980d',
            stack: '恒温',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '恒温未达标',
            type: 'bar',
            color: '#7f7f7f',
            stack: '恒温',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            data: [],
            emphasis: {
              focus: 'series',
            },
            itemStyle: {
              normal: {
                color: function (params) {
                  return '#fd4d4d'
                },
              },
            },
          },
          {
            name: '常温在售',
            type: 'bar',
            color: '#800080',
            stack: '常温',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '常温未达标',
            type: 'bar',
            color: '#7f7f7f',
            stack: '常温',
            barWidth: '18%',
            label: {
              show: true,
              position: 'top',
              offset: [0, 20],
              formatter: '{@[0]}%',
            },
            data: [],
            emphasis: {
              focus: 'series',
            },
            itemStyle: {
              normal: {
                color: function (params) {
                  return '#fd4d4d'
                },
              },
            },
          },
        ],
      }

      this.analysis3Option = {
        tooltip: {
          trigger: 'axis',
          axisPointer: {
            // 坐标轴指示器，坐标轴触发有效
            type: 'shadow', // 默认为直线，可选为：'line' | 'shadow'
          },
        },
        dataZoom: [
          {
            // 控制图表左右滑动
            width: '15',
            type: 'slider',
            show: false, //flase直接隐藏图形
            xAxisIndex: [0],
            left: 33, //滚动条靠左侧的百分比
            bottom: 40,
            height: 20, //组件高度
            start: 0, //滚动条的起始位置
            showDataShadow: false, //是否显示数据阴影
            showDetail: false, //是否显示想洗数值信息
            end: 50, //滚动条的截止位置（按比例分割你的柱状图x轴长度）
          },
          {
            type: 'inside',
            show: true,
            xAxisIndex: [0],
            start: 0, //滚动条的起始位置
            end: 0.25, //滚动条的截止位置（按比例分割你的柱状图x轴长度）
          },
        ],
        legend: {
          data: [
            '空余冷冻',
            '销售冷冻',
            '空余冷藏',
            '销售冷藏',
            '空余恒温',
            '销售恒温',
            '空余常温',
            '销售常温',
            '已占用',
          ],
        },
        grid: {
          left: '3%',
          right: '4%',
          bottom: '3%',
          containLabel: true,
        },
        xAxis: [
          {
            axisLabel: {
              interval: 0,
              rotate: 30,
            },
            type: 'category',
            data: ['上海BU', '天津BU', '成都BU', '重庆BU', '杭州BU', '北京BU', '广州BU', '大连BU', '武汉BU', '南京BU'],
          },
        ],
        yAxis: [
          {
            type: 'value',
          },
        ],
        series: [
          {
            name: '空余冷冻',
            type: 'bar',
            color: '#0080FF',
            stack: '已用空余',
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '销售冷冻',
            type: 'bar',
            color: '#0000FF',
            stack: '销售库位',
            data: [],
            emphasis: {
              focus: 'series',
            },
          },
          {
            name: '空余冷藏',
            type: 'bar',
            color: '#F7D358',
            stack: '已用空余',
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '销售冷藏',
            type: 'bar',
            color: '#FFFF00',
            stack: '销售库位',
            data: [],
            emphasis: {
              focus: 'series',
            },
          },
          {
            name: '空余恒温',
            type: 'bar',
            color: '#0ce01e',
            stack: '已用空余',
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '销售恒温',
            type: 'bar',
            color: '#00980d',
            stack: '销售库位',
            data: [],
            emphasis: {
              focus: 'series',
            },
          },
          {
            name: '空余常温',
            type: 'bar',
            color: '#c653da',
            stack: '已用空余',
            emphasis: {
              focus: 'series',
            },
            data: [],
          },
          {
            name: '销售常温',
            type: 'bar',
            color: '#800080',
            stack: '销售库位',
            data: [],
            emphasis: {
              focus: 'series',
            },
          },
          {
            name: '已占用',
            type: 'bar',
            color: '#c1c1c1',
            stack: '已用空余',
            data: [],
            emphasis: {
              focus: 'series',
            },
          },
        ],
      }
      this.analysis5Option = {
        title: {
          text: '客户图（个数）',
          left: 'center',
        },
        tooltip: {
          trigger: 'item',
        },
        legend: {
          orient: 'vertical',
          left: 'left',
        },
        series: [
          {
            name: '产品品类',
            type: 'pie',
            radius: '50%',
            data: [],
            emphasis: {
              itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)',
              },
            },
          },
        ],
      }

      this.analysis6Option = {
        title: {
          text: '商机图（金额）',
          left: 'center',
        },
        tooltip: {
          trigger: 'item',
        },
        legend: {
          orient: 'vertical',
          left: 'left',
        },
        series: [
          {
            name: '产品品类',
            type: 'pie',
            radius: '50%',
            data: [],
            emphasis: {
              itemStyle: {
                shadowBlur: 10,
                shadowOffsetX: 0,
                shadowColor: 'rgba(0, 0, 0, 0.5)',
              },
            },
          },
        ],
      }
      const param = {}
      param.onlyBu = 'N'

      getAction(this.url.businessListByProductCategory, { dateTypeId: 'year', onlyBu: 'N' }).then((res) => {
        let businessProduct = []
        res.result.workMap.businessListByProductCategory.forEach((e) => {
          businessProduct.push({
            value: e.businessNum,
            name: e.productCategoryName,
          })
        })
        this.analysis6Option.series[0].data = businessProduct
      })
      getAction(this.url.getSalesDataTotalAnalysis, param).then((res) => {
        let buList = []
        let estimatedFreezeRateList = []
        let estimatedRefrigerateRateList = []
        let estimatedConstantRateList = []
        let estimatedNormalRateList = []

        let caution_buList = []
        let caution_estimatedFreezeRateList = []
        let caution_estimatedRefrigerateRateList = []
        let caution_estimatedConstantRateList = []
        let caution_estimatedNormalRateList = []
        let caution_estimatedFreezeRateListNo = []
        let caution_estimatedRefrigerateRateListNo = []
        let caution_estimatedConstantRateListNo = []
        let caution_estimatedNormalRateListNo = []

        let estimatedDivAvailableRateList = []
        //冷冻空余
        let availableFreezeList = []
        //冷藏空余
        let availableRefrigerateList = []
        //恒温
        let availableConstantList = []
        // 常温
        let availableNormalList = []
        //销售冷冻
        let estimatedFreezeList = []
        //销售冷藏
        let estimatedRefrigerateList = []
        //销售恒温
        let estimatedConstantList = []
        //销售常温
        let estimatedNormalList = []
        // 已占用
        let physicalTotalList = []

        let customerProduct = []

        let list = res.result.workMap.customerListByProductCategory
        list.forEach((e) => {
          customerProduct.push({
            value: e.customerNum,
            name: e.productCategoryName,
          })
        })
        this.analysis5Option.series[0].data = customerProduct

        res.result.workMap.salesDataListByWarehouse.forEach((element) => {
          buList.push(element.warehouseName)
          estimatedFreezeRateList.push(element.estimatedFreezeRate)
          estimatedRefrigerateRateList.push(element.estimatedRefrigerateRate)
          estimatedConstantRateList.push(element.estimatedConstantRate)
          estimatedNormalRateList.push(element.estimatedNormalRate)
          estimatedDivAvailableRateList.push(element.estimatedDivAvailableRate)
          availableFreezeList.push(element.availableFreeze)
          availableRefrigerateList.push(element.availableRefrigerate)
          availableConstantList.push(element.availableConstant)
          availableNormalList.push(element.availableNormal)
          estimatedFreezeList.push(element.estimatedFreeze)
          estimatedRefrigerateList.push(element.estimatedRefrigerate)
          estimatedConstantList.push(element.estimatedConstant)
          estimatedNormalList.push(element.estimatedNormal)
          physicalTotalList.push(element.physicalTotal)
        })
        res.result.workMap.cautionSalesDataListByWarehouse.forEach((element) => {
          caution_buList.push(element.warehouseName)
          caution_estimatedFreezeRateList.push(element.estimatedFreezeRate)
          caution_estimatedFreezeRateListNo.push(element.estimatedFreezeRateNo)
          caution_estimatedRefrigerateRateList.push(element.estimatedRefrigerateRate)
          caution_estimatedRefrigerateRateListNo.push(element.estimatedRefrigerateRateNo)
          caution_estimatedConstantRateList.push(element.estimatedConstantRate)
          caution_estimatedConstantRateListNo.push(element.estimatedConstantRateNo)
          caution_estimatedNormalRateList.push(element.estimatedNormalRate)
          caution_estimatedNormalRateListNo.push(element.estimatedNormalRateNo)
        })

        this.analysis1Option.xAxis[0].data = caution_buList
        this.analysis1Option.series[0].data = caution_estimatedFreezeRateList
        this.analysis1Option.series[1].data = caution_estimatedFreezeRateListNo
        this.analysis1Option.series[2].data = caution_estimatedRefrigerateRateList
        this.analysis1Option.series[3].data = caution_estimatedRefrigerateRateListNo
        this.analysis1Option.series[4].data = caution_estimatedConstantRateList
        this.analysis1Option.series[5].data = caution_estimatedConstantRateListNo
        this.analysis1Option.series[6].data = caution_estimatedNormalRateList
        this.analysis1Option.series[7].data = caution_estimatedNormalRateListNo

        this.analysis3Option.xAxis[0].data = buList
        this.analysis3Option.series[0].data = availableFreezeList
        this.analysis3Option.series[1].data = estimatedFreezeList
        this.analysis3Option.series[2].data = availableRefrigerateList
        this.analysis3Option.series[3].data = estimatedRefrigerateList
        this.analysis3Option.series[4].data = availableConstantList
        this.analysis3Option.series[5].data = estimatedConstantList
        this.analysis3Option.series[6].data = availableNormalList
        this.analysis3Option.series[7].data = estimatedNormalList
        this.analysis3Option.series[8].data = physicalTotalList

        this.tableList = res.result.workMap.salesDataListByWarehouse
        this.fromDate = res.result.workMap.fromDate
        this.thruDate = res.result.workMap.thruDate

        this.$nextTick(() => {
          this.getDataList()
        })
      })
    },

    /**
     * 导出点击
     */
    exportClick() {
      this.requestExportInfo(biCustomerTotalListExportAPI, this.listPostParams)
    },
  },
}
</script>


<style lang="less" scoped>
/deep/ .ant-table-thead > tr > th,
.ant-table-tbody > tr > td {
  padding: 10px 4px;
}
.main-container {
  border: 1px solid #e6e6e6;
  border-radius: 2px;
  background-color: white;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.filtrate-bar {
  background-color: white;
  padding: 15px 20px 5px 20px;
  margin-right: 15px;
  line-height: 34px;
  .icon-box {
    width: 34px;
    height: 34px;
    text-align: center;
    line-height: 34px;
    color: #168a40;
    background-color: #dfe8ff;
    border-radius: 50%;
    margin-right: 10px;
    float: left;
  }
  .text {
    font-size: 17px;
    font-weight: 700;
  }
}

.content-title {
  padding: 10px 20px 5px;
  font-size: 16px;
  color: #333;
}
.analysis {
  margin-top: 10px;
  .analysis-content {
    padding: 8px 10px;
    .tips {
      padding-left: 8%;
      font-size: 12px;
      div {
        margin-bottom: 8px;
      }
    }
    #analysisAll1 {
      margin: 0 auto;
      width: 95%;
      height: 400px;
    }
    #analysisAll2 {
      margin: 0 auto;
      width: 95%;
      height: 400px;
    }
    #analysisAll3 {
      margin: 0 auto;
      width: 95%;
      height: 400px;
    }
    #analysisAll5 {
      margin: 0 auto;
      width: 95%;
      height: 500px;
    }
    #analysisAll6 {
      margin: 0 auto;
      width: 95%;
      height: 500px;
    }
  }
}

.axis-content {
  padding: 20px 10% 40px;
  position: relative;
  .axismain,
  #summaryAll1 {
    margin: 0 auto;
    width: 100%;
    height: 400px;
  }
}

.table-content {
  padding: 0 30px 20px 30px;
}

.export-button {
  float: right;
  margin-right: 22px;
}

// 导出操作bug
.handle-bar {
  margin-bottom: 8px;
  text-align: right;
}

.search-box {
  padding-right: 15px;
}

.radio-box {
  padding: 0 20px;
  margin-bottom: 15px;
  /deep/ .el-radio__label {
    color: #99a9bf !important;
  }
}

.static {
  padding: 0 20px;
  margin-bottom: 10px;
  .text {
    font-size: 13px;
    color: #99a9bf;
    display: inline-block;
  }
  .text:not(:last-child) {
    margin-right: 15px;
  }
}
/deep/ .ant-table-wrapper {
  border: 1px solid #ebeef5;
}
/deep/ .ant-table-placeholder {
  display: none;
}
</style>

